// filename: ELib.h
// author: enic
// date: 2015-01-29

#pragma once

#include "import_skia.h"
#include "import_stdlib.h"


#define E_SAFE_DELETE(p) if(NULL != p){ delete p; } p = NULL;
#define E_SAFE_DELETE_ARRAY(p) if(NULL != p){ delete []p; } p = NULL;


#define E_ASSERT(val) assert(val)
#define E_ASSERT_MSG(val, msg) assert(val)

#define E_NONE_COPYABLE(ClassName)  \
	private: \
	ClassName(const ClassName&); \
	ClassName& operator=(const ClassName&)

#define EColor SkColor
//#define EPosition SkPoint
#define ESize SkSize
#define ERect SkRect